Starting to stop tcp server 2, max. delay 1 seconds...	2.12.2021	01:20:13	_lx_SERVER	(5. tbl_ 7)

*** tcp close for sock 74, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	2.12.2021	01:20:13	lx	(4. palvelin)

closing socket '74'	1.	2.12.2021	01:20:13	lx	(4. palvelin)

*** tcp close for sock 81, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	2.12.2021	01:20:13	lx	(4. palvelin)

closing socket '81'	1.	2.12.2021	01:20:13	lx	(4. palvelin)


 -- Server statistics --
answerCount:          1
poll.fd_count:        1
pollCount:            389625
pollInCount:          2
pollOutCount:         0
pollCloseCount:       1
pollErrCount:         0
fd add/remove count:  4/3
totalBytesReceived:   777
totalBytesSent:       0	1.	2.12.2021	01:20:13	lx	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 84
	1.	2.12.2021	01:20:13	lx	(4. palvelin)

closing socket '84'	1.	2.12.2021	01:20:13	lx	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x010b619c60.	2.12.2021	01:20:13	lx	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x010b619c60, size: 400.	2.12.2021	01:20:13	lx	(4. palvelin)

--- server stopped ---.	2.12.2021	01:20:13	lx	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x010b619c60.	2.12.2021	01:20:13	lx	(4. palvelin)

Tcp palvelin 2 sammutettu.	2.12.2021	01:20:13	_lx_SERVER	(4. palvelin)

Käynnisteään Tcp palvelin 2.	2.12.2021	01:20:18	_lx_SERVER	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	2.12.2021	01:20:19	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/table/db_connection_preference.json'	1.	2.12.2021	01:20:19	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/auth/connection.json'	1.	2.12.2021	01:20:19	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/../nc-preference/.nc-env.json'	1.	2.12.2021	01:20:19	lx	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1.	2.12.2021	01:20:19	lx	(4. palvelin)

  database connect time: 0.0003 seconds.	2.12.2021	01:20:19	lx	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1.	2.12.2021	01:20:19	lx	(4. palvelin)


* paths:
 - main: '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	2.12.2021	01:20:19	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/table/prf/group.json'	1.	2.12.2021	01:20:19	lx	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x012d2ca250, size: 400.	2.12.2021	01:20:19	lx	(4. palvelin)

********************* /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/ *********************.	2.12.2021	01:20:19	lx	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1.	2.12.2021	01:20:19	lx	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0.	2.12.2021	01:20:19	lx	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1.	2.12.2021	01:20:19	lx	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1.	2.12.2021	01:20:19	lx	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1.	2.12.2021	01:20:19	lx	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1.	2.12.2021	01:20:19	lx	(4. palvelin)

All plugins have been loaded	1.	2.12.2021	01:20:19	lx	(4. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json.	2.12.2021	01:20:19	lx	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1.	2.12.2021	01:20:19	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	2.12.2021	01:20:19	lx	(4. palvelin)

Mac address: f84d896921dc	1.	2.12.2021	01:20:19	lx	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1.	2.12.2021	01:20:19	lx	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/	1.	2.12.2021	01:20:19	lx	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949/	1.	2.12.2021	01:20:19	lx	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-02 01:20:19, used memory 3122.0 kb ---	5.	2.12.2021	01:20:19	lx	(4. palvelin)

OSX arm64, using: rapidjson_arm	1.	2.12.2021	01:20:19	lx	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds...	2.12.2021	01:53:34	_lx_SERVER	(5. tbl_ 7)

*** tcp close for sock 81, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	2.12.2021	01:53:34	lx	(4. palvelin)

closing socket '81'	1.	2.12.2021	01:53:34	lx	(4. palvelin)

*** tcp close for sock 84, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	2.12.2021	01:53:34	lx	(4. palvelin)

closing socket '84'	1.	2.12.2021	01:53:34	lx	(4. palvelin)


 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            142024
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0	1.	2.12.2021	01:53:34	lx	(4. palvelin)

--- server stopped ---.	2.12.2021	01:53:34	lx	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x012d2ca250.	2.12.2021	01:53:34	lx	(4. palvelin)

Tcp palvelin 2 sammutettu.	2.12.2021	01:53:34	_lx_SERVER	(4. palvelin)

Käynnisteään Tcp palvelin 2.	2.12.2021	01:53:39	_lx_SERVER	(4. palvelin)

Tcp palvelin 2 on jo käynnissä.	2.12.2021	01:55:34	_lx_SERVER	(5. tbl_ 7)

Käynnisteään Tcp palvelin 2.	2.12.2021	01:55:34	_lx_SERVER	(4. palvelin)

err: lxL_loadfile failed

command: '/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua'
parameter: 'nc_server_4d.lua
/Users/pasi/nc/nc-server/manager/4d/
/Users/pasi/4D/mg_v19/Manageri_v19/
start'

cannot open /Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua: No such file or directory.	2.12.2021	01:57:06	_lua_ FileRun	(4. palvelin)

err: lx_pcall failed

command: 'runFrom4d'
parameter: 'unloadLua
test'

attempt to call a nil value
stack traceback:.	2.12.2021	01:57:06	_lua_ FileUnload	(4. palvelin)

Tcp palvelin 2 sammutettu.	2.12.2021	01:57:06	_lx_SERVER	(4. palvelin)

Tcp palvelin 2 on jo käynnissä.	2.12.2021	01:57:24	_lx_SERVER	(5. tbl_ 7)

Käynnisteään Tcp palvelin 2.	2.12.2021	01:57:25	_lx_SERVER	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	2.12.2021	01:57:26	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/table/db_connection_preference.json'	1.	2.12.2021	01:57:26	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/auth/connection.json'	1.	2.12.2021	01:57:26	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/../nc-preference/.nc-env.json'	1.	2.12.2021	01:57:26	lx	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1.	2.12.2021	01:57:26	lx	(4. palvelin)

  database connect time: 0.0003 seconds.	2.12.2021	01:57:26	lx	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1.	2.12.2021	01:57:26	lx	(4. palvelin)


* paths:
 - main: '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	2.12.2021	01:57:26	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/table/prf/group.json'	1.	2.12.2021	01:57:26	lx	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x010ff79f00, size: 400.	2.12.2021	01:57:26	lx	(4. palvelin)

********************* /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/ *********************.	2.12.2021	01:57:26	lx	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1.	2.12.2021	01:57:26	lx	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0.	2.12.2021	01:57:26	lx	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1.	2.12.2021	01:57:26	lx	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1.	2.12.2021	01:57:26	lx	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1.	2.12.2021	01:57:26	lx	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1.	2.12.2021	01:57:26	lx	(4. palvelin)

All plugins have been loaded	1.	2.12.2021	01:57:26	lx	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json.	2.12.2021	01:57:26	lx	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1.	2.12.2021	01:57:26	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	2.12.2021	01:57:26	lx	(4. palvelin)

Mac address: f84d896921dc	1.	2.12.2021	01:57:26	lx	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1.	2.12.2021	01:57:26	lx	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/	1.	2.12.2021	01:57:26	lx	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949/	1.	2.12.2021	01:57:26	lx	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-02 01:57:26, used memory 2987.1 kb ---	5.	2.12.2021	01:57:26	lx	(4. palvelin)

OSX arm64, using: rapidjson_arm	1.	2.12.2021	01:57:26	lx	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds...	2.12.2021	01:57:38	_lx_SERVER	(5. tbl_ 7)

*** tcp close for sock 84, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	2.12.2021	01:57:38	lx	(4. palvelin)

closing socket '84'	1.	2.12.2021	01:57:38	lx	(4. palvelin)

*** tcp close for sock 94, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	2.12.2021	01:57:38	lx	(4. palvelin)

closing socket '94'	1.	2.12.2021	01:57:38	lx	(4. palvelin)


 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            808
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0	1.	2.12.2021	01:57:38	lx	(4. palvelin)

--- server stopped ---.	2.12.2021	01:57:38	lx	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x010ff79f00.	2.12.2021	01:57:38	lx	(4. palvelin)

Tcp palvelin 2 sammutettu.	2.12.2021	01:57:38	_lx_SERVER	(4. palvelin)

Käynnisteään Tcp palvelin 2.	2.12.2021	01:57:54	_lx_SERVER	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	2.12.2021	02:01:05	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1.	2.12.2021	02:01:05	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1.	2.12.2021	02:01:05	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	2.12.2021	02:01:05	lx	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1.	2.12.2021	02:01:05	lx	(4. palvelin)

  database connect time: 0.0003 seconds.	2.12.2021	02:01:05	lx	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1.	2.12.2021	02:01:05	lx	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	2.12.2021	02:01:05	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1.	2.12.2021	02:01:05	lx	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01318eb6a0, size: 400.	2.12.2021	02:01:05	lx	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************.	2.12.2021	02:01:05	lx	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1.	2.12.2021	02:01:05	lx	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0.	2.12.2021	02:01:05	lx	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1.	2.12.2021	02:01:05	lx	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1.	2.12.2021	02:01:05	lx	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1.	2.12.2021	02:01:05	lx	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1.	2.12.2021	02:01:05	lx	(4. palvelin)

All plugins have been loaded	1.	2.12.2021	02:01:05	lx	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json.	2.12.2021	02:01:05	lx	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1.	2.12.2021	02:01:05	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	2.12.2021	02:01:05	lx	(4. palvelin)

Mac address: f84d896921dc	1.	2.12.2021	02:01:05	lx	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1.	2.12.2021	02:01:05	lx	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/	1.	2.12.2021	02:01:05	lx	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949/	1.	2.12.2021	02:01:05	lx	(4. palvelin)

--- server started in 0.005 seconds, 2021-12-02 02:01:05, used memory 3005.0 kb ---	5.	2.12.2021	02:01:05	lx	(4. palvelin)

OSX arm64, using: rapidjson_arm	1.	2.12.2021	02:01:05	lx	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds...	2.12.2021	02:01:16	_lx_SERVER	(5. tbl_ 7)

*** tcp close for sock 94, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	2.12.2021	02:01:16	lx	(4. palvelin)

closing socket '94'	1.	2.12.2021	02:01:16	lx	(4. palvelin)

*** tcp close for sock 95, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	2.12.2021	02:01:16	lx	(4. palvelin)

closing socket '95'	1.	2.12.2021	02:01:16	lx	(4. palvelin)


 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            680
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0	1.	2.12.2021	02:01:16	lx	(4. palvelin)

--- server stopped ---.	2.12.2021	02:01:16	lx	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x01318eb6a0.	2.12.2021	02:01:16	lx	(4. palvelin)

Tcp palvelin 2 sammutettu.	2.12.2021	02:01:16	_lx_SERVER	(4. palvelin)

Käynnisteään Tcp palvelin 2.	2.12.2021	02:01:26	_lx_SERVER	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	2.12.2021	02:01:30	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1.	2.12.2021	02:01:30	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1.	2.12.2021	02:01:30	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	2.12.2021	02:01:30	lx	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1.	2.12.2021	02:01:30	lx	(4. palvelin)

  database connect time: 0.0003 seconds.	2.12.2021	02:01:30	lx	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1.	2.12.2021	02:01:30	lx	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	2.12.2021	02:01:30	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1.	2.12.2021	02:01:30	lx	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x015f3f3640, size: 400.	2.12.2021	02:01:30	lx	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************.	2.12.2021	02:01:30	lx	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1.	2.12.2021	02:01:30	lx	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0.	2.12.2021	02:01:30	lx	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1.	2.12.2021	02:01:30	lx	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1.	2.12.2021	02:01:30	lx	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1.	2.12.2021	02:01:30	lx	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1.	2.12.2021	02:01:30	lx	(4. palvelin)

All plugins have been loaded	1.	2.12.2021	02:01:30	lx	(4. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json.	2.12.2021	02:01:30	lx	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1.	2.12.2021	02:01:30	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	2.12.2021	02:01:30	lx	(4. palvelin)

Mac address: f84d896921dc	1.	2.12.2021	02:01:30	lx	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1.	2.12.2021	02:01:30	lx	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/	1.	2.12.2021	02:01:30	lx	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949/	1.	2.12.2021	02:01:30	lx	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-02 02:01:30, used memory 3008.9 kb ---	5.	2.12.2021	02:01:30	lx	(4. palvelin)

OSX arm64, using: rapidjson_arm	1.	2.12.2021	02:01:30	lx	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-02 02:02:33
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 505
Content-Uncompressed-Length: 584

LZ4.	2.12.2021	02:02:33	lx	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1.	2.12.2021	02:02:33	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/system/4d.json'	1.	2.12.2021	02:02:33	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	2.12.2021	02:02:33	lx	(4. palvelin)

    Connected to: 'Manageri v12 rest4d local, 127.0.0.1:5949, database: 4d, user: manage_demo'	1.	2.12.2021	02:02:33	lx	(4. palvelin)

  database connect time: 0.0001 seconds.	2.12.2021	02:02:33	lx	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'rest4d/4d'	1.	2.12.2021	02:02:33	lx	(4. palvelin)

* organization id 'demo-4d-0', combining redirect preferences: '4d, default'	1.	2.12.2021	02:02:33	lx	(4. palvelin)

querySql4d() param = {
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
};.	2.12.2021	02:02:33	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	2.12.2021	02:02:33	lx	(4. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'	1.	2.12.2021	02:02:33	lx	(4. palvelin)

  database connect time: 0.0001 seconds.	2.12.2021	02:02:33	lx	(4. palvelin)

* auth: connection changed from 'rest4d/4d' to 'plg4d/plg4d'	1.	2.12.2021	02:02:33	lx	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d: company-customer', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1.	2.12.2021	02:02:33	lx	(4. palvelin)

  - sql execute 'plg4d/plg4d: company-customer', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1.	2.12.2021	02:02:33	lx	(4. palvelin)

warning: unknown field type, field 'name_id'
	1.	2.12.2021	02:02:33	lx	(4. palvelin)

warning: unknown field type, field 'text_value'
	1.	2.12.2021	02:02:33	lx	(4. palvelin)

*** tcp close for sock 97, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 775 bytes ***	1.	2.12.2021	02:02:53	lx	(4. palvelin)

closing socket '97'	1.	2.12.2021	02:02:53	lx	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds...	2.12.2021	02:05:48	_lx_SERVER	(5. tbl_ 7)

*** tcp close for sock 95, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	2.12.2021	02:05:48	lx	(4. palvelin)

closing socket '95'	1.	2.12.2021	02:05:48	lx	(4. palvelin)

*** tcp close for sock 96, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	2.12.2021	02:05:48	lx	(4. palvelin)

closing socket '96'	1.	2.12.2021	02:05:48	lx	(4. palvelin)


 -- Server statistics --
answerCount:          1
poll.fd_count:        1
pollCount:            17489
pollInCount:          2
pollOutCount:         0
pollCloseCount:       1
pollErrCount:         0
fd add/remove count:  4/3
totalBytesReceived:   775
totalBytesSent:       0	1.	2.12.2021	02:05:48	lx	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 99
	1.	2.12.2021	02:05:48	lx	(4. palvelin)

closing socket '99'	1.	2.12.2021	02:05:48	lx	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x015f3f3640.	2.12.2021	02:05:48	lx	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x015f3f3640, size: 400.	2.12.2021	02:05:48	lx	(4. palvelin)

--- server stopped ---.	2.12.2021	02:05:48	lx	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x015f3f3640.	2.12.2021	02:05:48	lx	(4. palvelin)

Tcp palvelin 2 sammutettu.	2.12.2021	02:05:48	_lx_SERVER	(4. palvelin)

Käynnisteään Tcp palvelin 2.	2.12.2021	02:06:49	_lx_SERVER	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	2.12.2021	02:06:51	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1.	2.12.2021	02:06:51	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1.	2.12.2021	02:06:51	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	2.12.2021	02:06:51	lx	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1.	2.12.2021	02:06:51	lx	(4. palvelin)

  database connect time: 0.0004 seconds.	2.12.2021	02:06:51	lx	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1.	2.12.2021	02:06:51	lx	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	2.12.2021	02:06:51	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1.	2.12.2021	02:06:51	lx	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x010ff89e10, size: 400.	2.12.2021	02:06:51	lx	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************.	2.12.2021	02:06:51	lx	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1.	2.12.2021	02:06:51	lx	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0.	2.12.2021	02:06:51	lx	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1.	2.12.2021	02:06:51	lx	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1.	2.12.2021	02:06:51	lx	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1.	2.12.2021	02:06:51	lx	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1.	2.12.2021	02:06:51	lx	(4. palvelin)

All plugins have been loaded	1.	2.12.2021	02:06:51	lx	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json.	2.12.2021	02:06:51	lx	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1.	2.12.2021	02:06:51	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	2.12.2021	02:06:51	lx	(4. palvelin)

Mac address: f84d896921dc	1.	2.12.2021	02:06:51	lx	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1.	2.12.2021	02:06:51	lx	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/	1.	2.12.2021	02:06:51	lx	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949/	1.	2.12.2021	02:06:51	lx	(4. palvelin)

--- server started in 0.003 seconds, 2021-12-02 02:06:51, used memory 3009.0 kb ---	5.	2.12.2021	02:06:51	lx	(4. palvelin)

OSX arm64, using: rapidjson_arm	1.	2.12.2021	02:06:51	lx	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-02 02:07:02
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 511
Content-Uncompressed-Length: 584

LZ4.	2.12.2021	02:07:02	lx	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1.	2.12.2021	02:07:02	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/system/4d.json'	1.	2.12.2021	02:07:02	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	2.12.2021	02:07:02	lx	(4. palvelin)

    Connected to: 'Manageri v12 rest4d local, 127.0.0.1:5949, database: 4d, user: manage_demo'	1.	2.12.2021	02:07:02	lx	(4. palvelin)

  database connect time: 0.0004 seconds.	2.12.2021	02:07:02	lx	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'rest4d/4d'	1.	2.12.2021	02:07:02	lx	(4. palvelin)

* organization id 'demo-4d-0', combining redirect preferences: '4d, default'	1.	2.12.2021	02:07:02	lx	(4. palvelin)

querySql4d() param = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};.	2.12.2021	02:07:02	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	2.12.2021	02:07:02	lx	(4. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'	1.	2.12.2021	02:07:02	lx	(4. palvelin)

  database connect time: 0.0001 seconds.	2.12.2021	02:07:02	lx	(4. palvelin)

* auth: connection changed from 'rest4d/4d' to 'plg4d/plg4d'	1.	2.12.2021	02:07:02	lx	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d: company-customer', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1.	2.12.2021	02:07:02	lx	(4. palvelin)

  - sql execute 'plg4d/plg4d: company-customer', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1.	2.12.2021	02:07:02	lx	(4. palvelin)

*** tcp close for sock 99, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 781 bytes ***	1.	2.12.2021	02:07:08	lx	(4. palvelin)

closing socket '99'	1.	2.12.2021	02:07:08	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	2.12.2021	02:07:46	lx	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1.	2.12.2021	02:07:46	lx	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1.	2.12.2021	02:07:46	lx	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	2.12.2021	02:07:46	lx	(1. Application process)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1.	2.12.2021	02:07:46	lx	(1. Application process)

  database connect time: 0.0004 seconds.	2.12.2021	02:07:46	lx	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_demo'	1.	2.12.2021	02:07:46	lx	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1.	2.12.2021	02:07:46	lx	(1. Application process)


error: preference 'system/nc_server_start.json' was not found
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:542: in function 'printError'
	/Users/pasi/nc/nc-server/lib/db/dprf.lua:466: in function 'preferenceFromJson'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:44: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:27>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
	1.	2.12.2021	02:07:46	lx	(1. Application process)

Tcp server 2 start check: start.	2.12.2021	02:07:46	_lx_SERVER	(1. Application process)

Käynnisteään Tcp palvelin 2.	2.12.2021	02:07:46	_lx_SERVER	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	2.12.2021	02:07:48	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1.	2.12.2021	02:07:48	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1.	2.12.2021	02:07:48	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	2.12.2021	02:07:48	lx	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1.	2.12.2021	02:07:48	lx	(4. palvelin)

  database connect time: 0.0002 seconds.	2.12.2021	02:07:48	lx	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1.	2.12.2021	02:07:48	lx	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	2.12.2021	02:07:48	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1.	2.12.2021	02:07:48	lx	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01215a32d0, size: 400.	2.12.2021	02:07:48	lx	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************.	2.12.2021	02:07:48	lx	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1.	2.12.2021	02:07:48	lx	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0.	2.12.2021	02:07:48	lx	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1.	2.12.2021	02:07:48	lx	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1.	2.12.2021	02:07:48	lx	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1.	2.12.2021	02:07:48	lx	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1.	2.12.2021	02:07:48	lx	(4. palvelin)

All plugins have been loaded	1.	2.12.2021	02:07:48	lx	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json.	2.12.2021	02:07:48	lx	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1.	2.12.2021	02:07:48	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	2.12.2021	02:07:48	lx	(4. palvelin)

Mac address: f84d896921dc	1.	2.12.2021	02:07:48	lx	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1.	2.12.2021	02:07:48	lx	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/	1.	2.12.2021	02:07:48	lx	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949/	1.	2.12.2021	02:07:48	lx	(4. palvelin)

--- server started in 0.001 seconds, 2021-12-02 02:07:48, used memory 3033.2 kb ---	5.	2.12.2021	02:07:48	lx	(4. palvelin)

OSX arm64, using: rapidjson_arm	1.	2.12.2021	02:07:48	lx	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds...	2.12.2021	02:09:23	_lx_SERVER	(5. tbl_ 4)

*** tcp close for sock 76, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	2.12.2021	02:09:23	lx	(4. palvelin)

closing socket '76'	1.	2.12.2021	02:09:23	lx	(4. palvelin)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	2.12.2021	02:09:23	lx	(4. palvelin)

closing socket '77'	1.	2.12.2021	02:09:23	lx	(4. palvelin)


 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            6704
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0	1.	2.12.2021	02:09:23	lx	(4. palvelin)

--- server stopped ---.	2.12.2021	02:09:23	lx	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x01215a32d0.	2.12.2021	02:09:23	lx	(4. palvelin)

Tcp palvelin 2 sammutettu.	2.12.2021	02:09:23	_lx_SERVER	(4. palvelin)

Käynnisteään Tcp palvelin 2.	2.12.2021	02:09:43	_lx_SERVER	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	2.12.2021	02:09:45	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1.	2.12.2021	02:09:45	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1.	2.12.2021	02:09:45	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	2.12.2021	02:09:45	lx	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1.	2.12.2021	02:09:45	lx	(4. palvelin)

  database connect time: 0.0009 seconds.	2.12.2021	02:09:45	lx	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1.	2.12.2021	02:09:45	lx	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	2.12.2021	02:09:45	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1.	2.12.2021	02:09:45	lx	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01702ba340, size: 400.	2.12.2021	02:09:45	lx	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************.	2.12.2021	02:09:45	lx	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1.	2.12.2021	02:09:45	lx	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0.	2.12.2021	02:09:45	lx	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1.	2.12.2021	02:09:45	lx	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1.	2.12.2021	02:09:45	lx	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1.	2.12.2021	02:09:45	lx	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1.	2.12.2021	02:09:45	lx	(4. palvelin)

All plugins have been loaded	1.	2.12.2021	02:09:45	lx	(4. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json.	2.12.2021	02:09:45	lx	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1.	2.12.2021	02:09:45	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	2.12.2021	02:09:45	lx	(4. palvelin)

Mac address: f84d896921dc	1.	2.12.2021	02:09:45	lx	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1.	2.12.2021	02:09:45	lx	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/	1.	2.12.2021	02:09:45	lx	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949/	1.	2.12.2021	02:09:45	lx	(4. palvelin)

--- server started in 0.004 seconds, 2021-12-02 02:09:45, used memory 3009.1 kb ---	5.	2.12.2021	02:09:45	lx	(4. palvelin)

OSX arm64, using: rapidjson_arm	1.	2.12.2021	02:09:45	lx	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-02 02:10:00
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 503
Content-Uncompressed-Length: 584

LZ4.	2.12.2021	02:10:00	lx	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1.	2.12.2021	02:10:00	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/system/4d.json'	1.	2.12.2021	02:10:00	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	2.12.2021	02:10:00	lx	(4. palvelin)

    Connected to: 'Manageri v12 rest4d local, 127.0.0.1:5949, database: 4d, user: manage_demo'	1.	2.12.2021	02:10:00	lx	(4. palvelin)

  database connect time: 0.0004 seconds.	2.12.2021	02:10:00	lx	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'rest4d/4d'	1.	2.12.2021	02:10:00	lx	(4. palvelin)

* organization id 'demo-4d-0', combining redirect preferences: '4d, default'	1.	2.12.2021	02:10:00	lx	(4. palvelin)

querySql4d() param = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};.	2.12.2021	02:10:00	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	2.12.2021	02:10:00	lx	(4. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'	1.	2.12.2021	02:10:00	lx	(4. palvelin)

  database connect time: 0.0002 seconds.	2.12.2021	02:10:00	lx	(4. palvelin)

* auth: connection changed from 'rest4d/4d' to 'plg4d/plg4d'	1.	2.12.2021	02:10:00	lx	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d: company-customer', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1.	2.12.2021	02:10:00	lx	(4. palvelin)

  - sql execute 'plg4d/plg4d: company-customer', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1.	2.12.2021	02:10:00	lx	(4. palvelin)

*** tcp close for sock 89, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 773 bytes ***	1.	2.12.2021	02:10:34	lx	(4. palvelin)

closing socket '89'	1.	2.12.2021	02:10:34	lx	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds...	2.12.2021	02:16:34	_lx_SERVER	(5. tbl_ 4)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	2.12.2021	02:16:34	lx	(4. palvelin)

closing socket '77'	1.	2.12.2021	02:16:34	lx	(4. palvelin)

*** tcp close for sock 88, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	2.12.2021	02:16:34	lx	(4. palvelin)

closing socket '88'	1.	2.12.2021	02:16:34	lx	(4. palvelin)


 -- Server statistics --
answerCount:          1
poll.fd_count:        1
pollCount:            26905
pollInCount:          2
pollOutCount:         0
pollCloseCount:       1
pollErrCount:         0
fd add/remove count:  4/3
totalBytesReceived:   773
totalBytesSent:       0	1.	2.12.2021	02:16:34	lx	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 92
	1.	2.12.2021	02:16:34	lx	(4. palvelin)

closing socket '92'	1.	2.12.2021	02:16:34	lx	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x01702ba340.	2.12.2021	02:16:34	lx	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01702ba340, size: 400.	2.12.2021	02:16:34	lx	(4. palvelin)

--- server stopped ---.	2.12.2021	02:16:34	lx	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x01702ba340.	2.12.2021	02:16:34	lx	(4. palvelin)

Tcp palvelin 2 sammutettu.	2.12.2021	02:16:34	_lx_SERVER	(4. palvelin)

Käynnisteään Tcp palvelin 2.	2.12.2021	02:17:24	_lx_SERVER	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	2.12.2021	02:17:26	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1.	2.12.2021	02:17:26	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1.	2.12.2021	02:17:26	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	2.12.2021	02:17:26	lx	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1.	2.12.2021	02:17:26	lx	(4. palvelin)

  database connect time: 0.0008 seconds.	2.12.2021	02:17:26	lx	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1.	2.12.2021	02:17:26	lx	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	2.12.2021	02:17:26	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1.	2.12.2021	02:17:26	lx	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01412a1710, size: 400.	2.12.2021	02:17:26	lx	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************.	2.12.2021	02:17:26	lx	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1.	2.12.2021	02:17:26	lx	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0.	2.12.2021	02:17:26	lx	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1.	2.12.2021	02:17:26	lx	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1.	2.12.2021	02:17:26	lx	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1.	2.12.2021	02:17:26	lx	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1.	2.12.2021	02:17:26	lx	(4. palvelin)

All plugins have been loaded	1.	2.12.2021	02:17:26	lx	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json.	2.12.2021	02:17:26	lx	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1.	2.12.2021	02:17:26	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	2.12.2021	02:17:26	lx	(4. palvelin)

Mac address: f84d896921dc	1.	2.12.2021	02:17:26	lx	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1.	2.12.2021	02:17:26	lx	(4. palvelin)

closing socket '92'	1.	2.12.2021	02:17:26	lx	(4. palvelin)


error:    SOCKET ERROR: listen_socket:bind for port 5949 failed with error: (-1) Unknown error: -1
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:542: in function 'printError'
	/Users/pasi/nc/nc-server/lib/net_socket.lua:195: in function 'cleanup'
	/Users/pasi/nc/nc-server/lib/lib_tcp.lua:811: in function 'listen'
	/Users/pasi/nc/nc-server/lib/server.lua:460: in function 'serverRun'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:140: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:150: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
	1.	2.12.2021	02:17:26	lx	(4. palvelin)


***  there is another instance of this program or some other program using the port 5949  ***  	1.	2.12.2021	02:17:26	lx	(4. palvelin)

error: server has not been started - quit-lx-server	1.	2.12.2021	02:17:26	lx	(4. palvelin)

error:    SOCKET ERROR: listen_socket:bind for port 5949 failed with error: (-1) Unknown error: -1
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:542: in function 'printError'
	/Users/pasi/nc/nc-server/lib/net_socket.lua:195: in function 'cleanup'
	/Users/pasi/nc/nc-server/lib/lib_tcp.lua:811: in function 'listen'
	/Users/pasi/nc/nc-server/lib/server.lua:460: in function 'serverRun'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:140: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:150: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>].	2.12.2021	02:17:26	_lx_SERVER	(4. palvelin)

error: server has not been started - quit-lx-server	1.	2.12.2021	02:17:26	lx	(4. palvelin)

error: server has not been started - quit-lx-server.	2.12.2021	02:17:26	_lx_SERVER	(4. palvelin)

warning: -*-ERR: close socket is nil
	1.	2.12.2021	02:17:26	lx	(4. palvelin)

warning: -*-ERR: close socket is nil
	1.	2.12.2021	02:17:26	lx	(4. palvelin)


 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            0
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  0/0
totalBytesReceived:   0
totalBytesSent:       0	1.	2.12.2021	02:17:26	lx	(4. palvelin)

--- server stopped ---.	2.12.2021	02:17:26	lx	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x01412a1710.	2.12.2021	02:17:26	lx	(4. palvelin)

Tcp palvelin 2 sammutettu.	2.12.2021	02:17:26	_lx_SERVER	(4. palvelin)

Tcp palvelin 2 ei ole käynnissä.	2.12.2021	02:17:39	_lx_SERVER	(5. tbl_ 4)

Käynnisteään Tcp palvelin 2.	2.12.2021	02:17:44	_lx_SERVER	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	2.12.2021	02:17:46	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1.	2.12.2021	02:17:46	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1.	2.12.2021	02:17:46	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	2.12.2021	02:17:46	lx	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1.	2.12.2021	02:17:46	lx	(4. palvelin)

  database connect time: 0.0007 seconds.	2.12.2021	02:17:46	lx	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1.	2.12.2021	02:17:46	lx	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	2.12.2021	02:17:46	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1.	2.12.2021	02:17:46	lx	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01750d3320, size: 400.	2.12.2021	02:17:46	lx	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************.	2.12.2021	02:17:46	lx	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1.	2.12.2021	02:17:46	lx	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0.	2.12.2021	02:17:46	lx	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1.	2.12.2021	02:17:46	lx	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1.	2.12.2021	02:17:46	lx	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1.	2.12.2021	02:17:46	lx	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1.	2.12.2021	02:17:46	lx	(4. palvelin)

All plugins have been loaded	1.	2.12.2021	02:17:46	lx	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json.	2.12.2021	02:17:46	lx	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1.	2.12.2021	02:17:46	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	2.12.2021	02:17:46	lx	(4. palvelin)

Mac address: f84d896921dc	1.	2.12.2021	02:17:46	lx	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1.	2.12.2021	02:17:46	lx	(4. palvelin)

closing socket '88'	1.	2.12.2021	02:17:46	lx	(4. palvelin)


error:    SOCKET ERROR: listen_socket:bind for port 5949 failed with error: (-1) Unknown error: -1
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:542: in function 'printError'
	/Users/pasi/nc/nc-server/lib/net_socket.lua:195: in function 'cleanup'
	/Users/pasi/nc/nc-server/lib/lib_tcp.lua:811: in function 'listen'
	/Users/pasi/nc/nc-server/lib/server.lua:460: in function 'serverRun'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:140: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:150: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
	1.	2.12.2021	02:17:46	lx	(4. palvelin)


***  there is another instance of this program or some other program using the port 5949  ***  	1.	2.12.2021	02:17:46	lx	(4. palvelin)

error: server has not been started - quit-lx-server	1.	2.12.2021	02:17:46	lx	(4. palvelin)

error:    SOCKET ERROR: listen_socket:bind for port 5949 failed with error: (-1) Unknown error: -1
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:542: in function 'printError'
	/Users/pasi/nc/nc-server/lib/net_socket.lua:195: in function 'cleanup'
	/Users/pasi/nc/nc-server/lib/lib_tcp.lua:811: in function 'listen'
	/Users/pasi/nc/nc-server/lib/server.lua:460: in function 'serverRun'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:140: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:150: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>].	2.12.2021	02:17:46	_lx_SERVER	(4. palvelin)

error: server has not been started - quit-lx-server	1.	2.12.2021	02:17:46	lx	(4. palvelin)

error: server has not been started - quit-lx-server.	2.12.2021	02:17:46	_lx_SERVER	(4. palvelin)

warning: -*-ERR: close socket is nil
	1.	2.12.2021	02:17:46	lx	(4. palvelin)

warning: -*-ERR: close socket is nil
	1.	2.12.2021	02:17:46	lx	(4. palvelin)


 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            0
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  0/0
totalBytesReceived:   0
totalBytesSent:       0	1.	2.12.2021	02:17:46	lx	(4. palvelin)

--- server stopped ---.	2.12.2021	02:17:46	lx	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x01750d3320.	2.12.2021	02:17:46	lx	(4. palvelin)

Tcp palvelin 2 sammutettu.	2.12.2021	02:17:46	_lx_SERVER	(4. palvelin)

Käynnisteään Tcp palvelin 2.	2.12.2021	02:19:40	_lx_SERVER	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	2.12.2021	02:19:42	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1.	2.12.2021	02:19:42	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1.	2.12.2021	02:19:42	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	2.12.2021	02:19:42	lx	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1.	2.12.2021	02:19:42	lx	(4. palvelin)

  database connect time: 0.0005 seconds.	2.12.2021	02:19:42	lx	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1.	2.12.2021	02:19:42	lx	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	2.12.2021	02:19:42	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1.	2.12.2021	02:19:42	lx	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0166c05fd0, size: 400.	2.12.2021	02:19:42	lx	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************.	2.12.2021	02:19:42	lx	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1.	2.12.2021	02:19:42	lx	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0.	2.12.2021	02:19:42	lx	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1.	2.12.2021	02:19:42	lx	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1.	2.12.2021	02:19:42	lx	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1.	2.12.2021	02:19:42	lx	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1.	2.12.2021	02:19:42	lx	(4. palvelin)

All plugins have been loaded	1.	2.12.2021	02:19:42	lx	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json.	2.12.2021	02:19:42	lx	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1.	2.12.2021	02:19:42	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	2.12.2021	02:19:42	lx	(4. palvelin)

Mac address: f84d896921dc	1.	2.12.2021	02:19:42	lx	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1.	2.12.2021	02:19:42	lx	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/	1.	2.12.2021	02:19:42	lx	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949/	1.	2.12.2021	02:19:42	lx	(4. palvelin)

--- server started in 0.003 seconds, 2021-12-02 02:19:42, used memory 3009.4 kb ---	5.	2.12.2021	02:19:42	lx	(4. palvelin)

OSX arm64, using: rapidjson_arm	1.	2.12.2021	02:19:42	lx	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-02 02:19:53
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 503
Content-Uncompressed-Length: 584

LZ4.	2.12.2021	02:19:53	lx	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1.	2.12.2021	02:19:53	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/system/4d.json'	1.	2.12.2021	02:19:53	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	2.12.2021	02:19:53	lx	(4. palvelin)

    Connected to: 'Manageri v12 rest4d local, 127.0.0.1:5949, database: 4d, user: manage_demo'	1.	2.12.2021	02:19:53	lx	(4. palvelin)

  database connect time: 0.0001 seconds.	2.12.2021	02:19:53	lx	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'rest4d/4d'	1.	2.12.2021	02:19:53	lx	(4. palvelin)

* organization id 'demo-4d-0', combining redirect preferences: '4d, default'	1.	2.12.2021	02:19:53	lx	(4. palvelin)

querySql4d() param = {
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
};.	2.12.2021	02:19:53	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	2.12.2021	02:19:53	lx	(4. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'	1.	2.12.2021	02:19:53	lx	(4. palvelin)

  database connect time: 0.0000 seconds.	2.12.2021	02:19:53	lx	(4. palvelin)

* auth: connection changed from 'rest4d/4d' to 'plg4d/plg4d'	1.	2.12.2021	02:19:53	lx	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d: company-customer', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1.	2.12.2021	02:19:53	lx	(4. palvelin)

  - sql execute 'plg4d/plg4d: company-customer', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1.	2.12.2021	02:19:53	lx	(4. palvelin)

plg4d fldName selectionToArrayTable = {
 [1] = "name_id";
 [2] = "text_value";
};.	2.12.2021	02:19:53	lx	(4. palvelin)

plg4d fldType selectionToArrayTable = {
 [1] = "string";
 [2] = "string";
};.	2.12.2021	02:19:53	lx	(4. palvelin)

plg4d option selectionToArrayTable = {};.	2.12.2021	02:19:53	lx	(4. palvelin)

plg4d resultType: nil.	2.12.2021	02:19:53	lx	(4. palvelin)

*** tcp close for sock 93, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 773 bytes ***	1.	2.12.2021	02:20:34	lx	(4. palvelin)

closing socket '93'	1.	2.12.2021	02:20:34	lx	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds...	2.12.2021	02:37:17	_lx_SERVER	(5. tbl_ 4)

*** tcp close for sock 91, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	2.12.2021	02:37:17	lx	(4. palvelin)

closing socket '91'	1.	2.12.2021	02:37:17	lx	(4. palvelin)

*** tcp close for sock 92, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	2.12.2021	02:37:17	lx	(4. palvelin)

closing socket '92'	1.	2.12.2021	02:37:17	lx	(4. palvelin)


 -- Server statistics --
answerCount:          1
poll.fd_count:        1
pollCount:            78529
pollInCount:          2
pollOutCount:         0
pollCloseCount:       1
pollErrCount:         0
fd add/remove count:  4/3
totalBytesReceived:   773
totalBytesSent:       0	1.	2.12.2021	02:37:17	lx	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 95
	1.	2.12.2021	02:37:17	lx	(4. palvelin)

closing socket '95'	1.	2.12.2021	02:37:17	lx	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x0166c05fd0.	2.12.2021	02:37:17	lx	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0166c05fd0, size: 400.	2.12.2021	02:37:17	lx	(4. palvelin)

--- server stopped ---.	2.12.2021	02:37:17	lx	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x0166c05fd0.	2.12.2021	02:37:17	lx	(4. palvelin)

Tcp palvelin 2 sammutettu.	2.12.2021	02:37:17	_lx_SERVER	(4. palvelin)

Käynnisteään Tcp palvelin 2.	2.12.2021	02:37:22	_lx_SERVER	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	2.12.2021	02:37:24	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1.	2.12.2021	02:37:24	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1.	2.12.2021	02:37:24	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	2.12.2021	02:37:24	lx	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1.	2.12.2021	02:37:24	lx	(4. palvelin)

  database connect time: 0.0002 seconds.	2.12.2021	02:37:24	lx	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1.	2.12.2021	02:37:24	lx	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	2.12.2021	02:37:24	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1.	2.12.2021	02:37:24	lx	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01738db580, size: 400.	2.12.2021	02:37:24	lx	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************.	2.12.2021	02:37:24	lx	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1.	2.12.2021	02:37:24	lx	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0.	2.12.2021	02:37:24	lx	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1.	2.12.2021	02:37:24	lx	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1.	2.12.2021	02:37:24	lx	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1.	2.12.2021	02:37:24	lx	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1.	2.12.2021	02:37:24	lx	(4. palvelin)

All plugins have been loaded	1.	2.12.2021	02:37:24	lx	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json.	2.12.2021	02:37:24	lx	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1.	2.12.2021	02:37:24	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	2.12.2021	02:37:24	lx	(4. palvelin)

Mac address: f84d896921dc	1.	2.12.2021	02:37:24	lx	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1.	2.12.2021	02:37:24	lx	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/	1.	2.12.2021	02:37:24	lx	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949/	1.	2.12.2021	02:37:24	lx	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-02 02:37:24, used memory 3117.3 kb ---	5.	2.12.2021	02:37:24	lx	(4. palvelin)

OSX arm64, using: rapidjson_arm	1.	2.12.2021	02:37:24	lx	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-02 02:37:49
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 505
Content-Uncompressed-Length: 584

LZ4.	2.12.2021	02:37:49	lx	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1.	2.12.2021	02:37:49	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/system/4d.json'	1.	2.12.2021	02:37:49	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	2.12.2021	02:37:49	lx	(4. palvelin)

    Connected to: 'Manageri v12 rest4d local, 127.0.0.1:5949, database: 4d, user: manage_demo'	1.	2.12.2021	02:37:49	lx	(4. palvelin)

  database connect time: 0.0000 seconds.	2.12.2021	02:37:49	lx	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'rest4d/4d'	1.	2.12.2021	02:37:49	lx	(4. palvelin)

* organization id 'demo-4d-0', combining redirect preferences: '4d, default'	1.	2.12.2021	02:37:49	lx	(4. palvelin)

querySql4d() param = {
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
};.	2.12.2021	02:37:49	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	2.12.2021	02:37:49	lx	(4. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'	1.	2.12.2021	02:37:49	lx	(4. palvelin)

  database connect time: 0.0000 seconds.	2.12.2021	02:37:49	lx	(4. palvelin)

* auth: connection changed from 'rest4d/4d' to 'plg4d/plg4d'	1.	2.12.2021	02:37:49	lx	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d: company-customer', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1.	2.12.2021	02:37:49	lx	(4. palvelin)

  - sql execute 'plg4d/plg4d: company-customer', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1.	2.12.2021	02:37:49	lx	(4. palvelin)

plg4d fldName selectionToArrayTable = {
 [1] = "name_id";
 [2] = "text_value";
};.	2.12.2021	02:37:49	lx	(4. palvelin)

plg4d fldType selectionToArrayTable = {
 [1] = "string";
 [2] = "string";
};.	2.12.2021	02:37:49	lx	(4. palvelin)

plg4d option selectionToArrayTable = {};.	2.12.2021	02:37:49	lx	(4. palvelin)

plg4d resultType: nil.	2.12.2021	02:37:49	lx	(4. palvelin)

plg4d fldName executeSqlIn4d = "nil".	2.12.2021	02:37:49	lx	(4. palvelin)

plg4d queryName executeSqlIn4d = {
 [1] = "name_id";
 [2] = "text_value";
};.	2.12.2021	02:37:49	lx	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds...	2.12.2021	03:45:57	_lx_SERVER	(5. tbl_ 4)

*** tcp close for sock 92, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	2.12.2021	03:45:57	lx	(4. palvelin)

closing socket '92'	1.	2.12.2021	03:45:57	lx	(4. palvelin)

*** tcp close for sock 93, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	2.12.2021	03:45:57	lx	(4. palvelin)

closing socket '93'	1.	2.12.2021	03:45:57	lx	(4. palvelin)


 -- Server statistics --
answerCount:          1
poll.fd_count:        2
pollCount:            291449
pollInCount:          2
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  4/2
totalBytesReceived:   775
totalBytesSent:       0	1.	2.12.2021	03:45:57	lx	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 98
	1.	2.12.2021	03:45:57	lx	(4. palvelin)

closing socket '98'	1.	2.12.2021	03:45:57	lx	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 96
	1.	2.12.2021	03:45:57	lx	(4. palvelin)

closing socket '96'	1.	2.12.2021	03:45:57	lx	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x01738db580.	2.12.2021	03:45:57	lx	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01738db580, size: 400.	2.12.2021	03:45:57	lx	(4. palvelin)

--- server stopped ---.	2.12.2021	03:45:57	lx	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x01738db580.	2.12.2021	03:45:57	lx	(4. palvelin)

Tcp palvelin 2 sammutettu.	2.12.2021	03:45:57	_lx_SERVER	(4. palvelin)

Käynnisteään Tcp palvelin 2.	2.12.2021	03:46:02	_lx_SERVER	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	2.12.2021	03:46:04	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1.	2.12.2021	03:46:04	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1.	2.12.2021	03:46:04	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	2.12.2021	03:46:04	lx	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1.	2.12.2021	03:46:04	lx	(4. palvelin)

  database connect time: 0.0010 seconds.	2.12.2021	03:46:04	lx	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1.	2.12.2021	03:46:04	lx	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1.	2.12.2021	03:46:04	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1.	2.12.2021	03:46:04	lx	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x016d709330, size: 400.	2.12.2021	03:46:04	lx	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************.	2.12.2021	03:46:04	lx	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1.	2.12.2021	03:46:04	lx	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0.	2.12.2021	03:46:04	lx	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1.	2.12.2021	03:46:04	lx	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1.	2.12.2021	03:46:04	lx	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1.	2.12.2021	03:46:04	lx	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1.	2.12.2021	03:46:04	lx	(4. palvelin)

All plugins have been loaded	1.	2.12.2021	03:46:04	lx	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json.	2.12.2021	03:46:04	lx	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1.	2.12.2021	03:46:04	lx	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1.	2.12.2021	03:46:04	lx	(4. palvelin)

Mac address: f84d896921dc	1.	2.12.2021	03:46:04	lx	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1.	2.12.2021	03:46:04	lx	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/	1.	2.12.2021	03:46:04	lx	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949/	1.	2.12.2021	03:46:04	lx	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-02 03:46:04, used memory 3106.2 kb ---	5.	2.12.2021	03:46:04	lx	(4. palvelin)

OSX arm64, using: rapidjson_arm	1.	2.12.2021	03:46:04	lx	(4. palvelin)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-02 03:46:30
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 504
Content-Uncompressed-Length: 584

LZ4.	2.12.2021	03:46:30	lx	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1.	2.12.2021	03:46:30	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/system/4d.json'	1.	2.12.2021	03:46:30	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	2.12.2021	03:46:30	lx	(4. palvelin)

    Connected to: 'Manageri v12 rest4d local, 127.0.0.1:5949, database: 4d, user: manage_demo'	1.	2.12.2021	03:46:30	lx	(4. palvelin)

  database connect time: 0.0001 seconds.	2.12.2021	03:46:30	lx	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'rest4d/4d'	1.	2.12.2021	03:46:30	lx	(4. palvelin)

* organization id 'demo-4d-0', combining redirect preferences: '4d, default'	1.	2.12.2021	03:46:30	lx	(4. palvelin)

querySql4d() param = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
};.	2.12.2021	03:46:30	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	2.12.2021	03:46:30	lx	(4. palvelin)

*** tcp close for sock 98, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 774 bytes ***	1.	2.12.2021	03:46:40	lx	(4. palvelin)

closing socket '98'	1.	2.12.2021	03:46:40	lx	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1.	2.12.2021	03:49:46	lx	(4. palvelin)

querySql4d() param = {
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
 };
 ["query_name"] = "new:dsql.sqlExecuteUnsafe";
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
 ["sql"] = "SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'";
};.	2.12.2021	03:49:46	lx	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1.	2.12.2021	03:49:46	lx	(4. palvelin)

*** tcp close for sock 98, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 783 bytes ***	1.	2.12.2021	03:50:17	lx	(4. palvelin)

closing socket '98'	1.	2.12.2021	03:50:17	lx	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds...	2.12.2021	03:50:31	_lx_SERVER	(5. tbl_ 8)

*** tcp close for sock 93, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	2.12.2021	03:50:32	lx	(4. palvelin)

closing socket '93'	1.	2.12.2021	03:50:32	lx	(4. palvelin)

*** tcp close for sock 96, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1.	2.12.2021	03:50:32	lx	(4. palvelin)

closing socket '96'	1.	2.12.2021	03:50:32	lx	(4. palvelin)


 -- Server statistics --
answerCount:          2
poll.fd_count:        1
pollCount:            18618
pollInCount:          3
pollOutCount:         0
pollCloseCount:       2
pollErrCount:         0
fd add/remove count:  5/4
totalBytesReceived:   1557
totalBytesSent:       0	1.	2.12.2021	03:50:32	lx	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 100
	1.	2.12.2021	03:50:32	lx	(4. palvelin)

closing socket '100'	1.	2.12.2021	03:50:32	lx	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x016d709330.	2.12.2021	03:50:32	lx	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x016d709330, size: 400.	2.12.2021	03:50:32	lx	(4. palvelin)

--- server stopped ---.	2.12.2021	03:50:32	lx	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x016d709330.	2.12.2021	03:50:32	lx	(4. palvelin)

Tcp palvelin 2 sammutettu.	2.12.2021	03:50:32	_lx_SERVER	(4. palvelin)

err: lx_pcall failed

command: '/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua'
parameter: 'nc_server_4d.lua
/Users/pasi/nc/nc-server/manager/4d/
/Users/pasi/4D/mg_v19/Manageri_v19/
{"application_type":0, "user":"MG_Creator"}'

/Users/pasi/nc/nc-server/lib/start.lua:307: loop or previous error loading module 'plg4d'
stack traceback:
	[C]: in function 'require'
	/Users/pasi/nc/nc-server/lib/start.lua:307: in function 'print'
	/Users/pasi/nc/nc-server/lib/start.lua:91: in function 'setBinPath'
	/Users/pasi/nc/nc-server/lib/start.lua:240: in function 'setFilePath'
	/Users/pasi/nc/nc-server/lib/start.lua:364: in function 'setFrom4d'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:10: in main chunk.	2.12.2021	15:34:27	_lua_ FileRun	(1. Application process)

err: lx_pcall failed

command: 'runFrom4d'
parameter: 'unloadLua
test'

attempt to call a nil value
stack traceback:.	2.12.2021	15:34:27	_lua_ FileUnload	(1. Application process)

